﻿using M.AuditField;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.AccessControl;

namespace M_Manufacture.Domain
{
    /// <summary>
    /// 生产订单表
    /// </summary>
    [Table("Order")]
    public class Order:AuditFields
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 生产编号
        /// </summary>
        public string? ManufactureNumber { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string? OrderNumber { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        public string? Priority { get; set; }
        /// <summary>
        /// 成品编号
        /// </summary>
        public string? FinishedNumber { get; set; }
        /// <summary>
        /// 生产状态
        /// </summary>
        public string? ManufactureState { get; set; }
        /// <summary>
        /// 已生产数量
        /// </summary>
        public int? QuantityProduced { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        public string? client { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}